package tests;


import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import business.Aluno;
import business.Disciplina;
import business.Inscricao;
import business.Professor;
import business.ProfessorFacade;

public class ProfessorFacadeTest {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}
	
	@Test
	public void test(){
		Aluno a = new Aluno();
		a.setNome("Joao Pires");
		Inscricao i = new Inscricao();
		i.setAluno(a);
		Disciplina d = new Disciplina();
		d.setNome("es");
		Disciplina d2= new Disciplina();
		d2.setNome("esII");
		i.setDisciplina(d);
		
		Inscricao i2 = new Inscricao();
		i2.setAluno(a);
		i2.setDisciplina(d2);
		
		
		Aluno b = new Aluno();
		b.setNome("Antonio Sequeira");
		ProfessorFacade pf = new ProfessorFacade(new Professor());
		pf.listarTodosOsAlunos();
		System.out.println("++++");
		pf.obterDetalhesAluno(a);
		
		pf.getAllAlunos();
		pf.lancaResultado(new Disciplina(), new Aluno(), 8);
	}

}
